<template>
    <div class="container" @click="click">
        <ul>
            <li>
                <slot>默认插槽的默认内容</slot>  
            </li>
            <li>
                <slot name="another">具名插槽的默认内容</slot>
            </li>
        </ul>
        <Child :content="childContent"></Child>
    </div>

</template>

<script setup>
import Child from './Child.vue';
import { ref } from 'vue';
const childContent = ref('Parent是App的子组件, Child是Parent的子组件')

</script>
<style scoped></style>